﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.Production.Domain
{/// <summary>
/// 补料明细菜单
/// </summary>
    public class ReplenishmentDetailModel
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 补料主表
        /// </summary>
        public int ReplenishmentId { get; set; }
        /// <summary>
        /// 序号（自动生成）
        /// </summary>
        public int Sequence { get; init; }

        /// <summary>
        /// 产品名称（必填）
        /// </summary>
        public  string ProductName { get; set; }

        /// <summary>
        /// 产品编号（可选）
        /// </summary>
        public string? ProductCode { get; set; }

        /// <summary>
        /// 规格型号（可选）
        /// </summary>
        public string? Specification { get; set; }

        /// <summary>
        /// 单位（默认"个"）
        /// </summary>
        public string Unit { get; set; } 

        /// <summary>
        /// 补料数量（必填，需>0）
        /// </summary>
        public  int Quantity { get; set; }

        /// <summary>
        /// 出库库管（必填）
        /// </summary>
        public  string WarehouseManager { get; set; }

        /// <summary>
        /// 现有库存（自动显示）
        /// </summary>
        public int ExistingStock { get; init; }

        /// <summary>
        /// 交货日期（可选）
        /// </summary>
        public DateTime? DeliveryDate { get; set; }

        /// <summary>
        /// 补料方式（默认"自提"）
        /// </summary>
        public string ReplenishmentMethod { get; set; } 

        /// <summary>
        /// 备注（可选）
        /// </summary>
        public string? Remarks { get; set; }

        /// <summary>
        /// 规格（可选）
        /// </summary>
        public string? Model { get; set; }

        /// <summary>
        /// 关联单据（可选）
        /// </summary>
        public string? RelatedDocument { get; set; }
    }
}
